onUpdateClient

open fun onUpdateClient()

Runs on the logical client after the config is updated. Typically, this is when the user closes the config screen or applies changes, but also occurs after a connected client recieves a S2C update. This is distinct from onSyncClient, which fires when the entire config state is synced on login/reload. This handles chnages made in-game.

This should only perform client logic, and it is good practice to insulate client-only code by putting a method reference to a dedicated client-only class in this call.

Author

fzzyhmstrs

Since

0.5.0

See also